package traits

import org.joda.time.DateTime

trait Luz extends Cancha {

  override def tieneLuz = true

  override def calcularPrecio(dia: DateTime): BigDecimal =
    super.calcularPrecio(dia) * (if (dia.getHourOfDay >= 18) 1.2 else 1)
}